package cn.whitecao.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.Random;

@Component
public class TestConfiguration {

	@Bean
	public AA getAA(){
		AA aa = new AA();
		aa.setA(new Random().nextDouble());
		return aa;
	}

}
